package com.beney.messageHandler;

import com.beney.message.MessageHandler;
import com.beney.message.idle.HeartbeatResp;
import io.netty.channel.Channel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class HeartbeatRespHandler implements MessageHandler<HeartbeatResp> {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @Override

    public void handle(Channel ch, HeartbeatResp message) {
        logger.info("[handle][收到连接 ({}) 心跳响应]", ch.id());
    }

    @Override
    public String messageType() {
        return HeartbeatResp.TYPE;
    }
}
